Skip to content

Refactor PathsAndConsumesOfModules #47937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Dr15Jones
Copy link
Contributor

@Dr15Jones Dr15Jones commented Apr 23, 2025

PR description:

  • moved complex logic for creating the internal data structures to the class itself
  • can now ask an ESProducer what is produces
  • provide a mechanism to get minimal information about what ES products are being consumed

PR validation:

Framework unit tests pass.

resolves cms-sw/framework-team#1368

- moved complex logic for creating the internal data structures to the class itself
- can no ask an ESProducer what is produces
- provide a mechanism to get minimal information about what ES products are being consumed
@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 23, 2025

cms-bot internal usage

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47937/44595

ERROR: Build errors found during clang-tidy run.

  350 |                                module,
--
src/FWCore/Framework/interface/EDConsumerBase.h:349:13: error: invalid use of incomplete type 'ModuleConsumesInfo' [clang-diagnostic-error]
  349 |       iFunc(ModuleConsumesInfo(itInfo->m_type,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  350 |                                module,
--
src/FWCore/Framework/interface/EDConsumerBase.h:349:13: error: invalid use of incomplete type 'ModuleConsumesInfo' [clang-diagnostic-error]
  349 |       iFunc(ModuleConsumesInfo(itInfo->m_type,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  350 |                                module,
--
src/FWCore/Framework/interface/EDConsumerBase.h:349:13: error: invalid use of incomplete type 'ModuleConsumesInfo' [clang-diagnostic-error]
  349 |       iFunc(ModuleConsumesInfo(itInfo->m_type,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  350 |                                module,
--
src/FWCore/Framework/interface/EDConsumerBase.h:349:13: error: invalid use of incomplete type 'ModuleConsumesInfo' [clang-diagnostic-error]
  349 |       iFunc(ModuleConsumesInfo(itInfo->m_type,
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  350 |                                module,
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:129: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47937/44596

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47937/44597

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones for master.

It involves the following packages:

  • CondCore/CondHDF5ESSource (db)
  • CondCore/ESSources (db, alca)
  • FWCore/Framework (core)
  • FWCore/Integration (core)
  • FWCore/Services (core)
  • FWCore/TestProcessor (core)
  • PhysicsTools/CondLiteIO (analysis)

@Dr15Jones, @atpathak, @cmsbuild, @consuegs, @francescobrivio, @makortel, @perrotta, @smuzaffar, @tvami can you please review it and eventually sign? Thanks.
@JanChyczynski, @PonIlya, @fwyzard, @makortel, @missirol, @mmusich, @rsreds, @tocheng, @wddgit, @yuanchao this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-47937/44624

@cmsbuild
Copy link
Contributor

Pull request #47937 was updated. @Dr15Jones, @atpathak, @cmsbuild, @consuegs, @francescobrivio, @makortel, @perrotta, @smuzaffar, @tvami can you please check and sign again.

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests
Size: This PR adds an extra 28KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-40a674/45727/summary.html
COMMIT: cbe57e9
CMSSW: CMSSW_15_1_X_2025-04-25-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/47937/45727/install.sh to create a dev area with all the needed externals and cmssw changes.

Unit Tests

I found 1 errors in the following unit tests:

---> test test_MilleZmm had ERRORS

Comparison Summary

Summary:

  • You potentially removed 1 lines from the logs
  • Reco comparison results: 6 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3913297
  • DQMHistoTests: Total failures: 52
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3913225
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 49 files compared)
  • Checked 215 log files, 184 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@Dr15Jones
Copy link
Contributor Author

The failing unit test is failing in the IB so has nothing to do with this PR.

@makortel
Copy link
Contributor

+core

@makortel
Copy link
Contributor

Comparison differences are related to #47071

@makortel
Copy link
Contributor

ignore tests-rejected with ib-failure

@tvami
Copy link
Contributor

tvami commented Apr 29, 2025

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor EventSetup consumes information in PathsAndConsumesOfModules
4 participants